// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
// import './assets/js/eruda.min'
// eruda.init()

import Vue from 'vue'
import App from './App'
import router from './router'
import './assets/js/filter'
import { routerWatch } from './assets/js/common'

import Toast from './components/component/toast/index'
Vue.use(Toast)

import store from './store/index'

Vue.config.productionTip = false

/* eslint-disable no-new */
var vm = new Vue({
  el: '#app',
  router,
  store,
  components: {
	App ,
  },
  template: '<App/>'
})

router.beforeEach((to, from, next) => {

	next()
	routerWatch(to)
})
